/*************************************
 * Created by WebStorm
 * Author : 艾尼亚尔·毛拉吾提
 * QQ : 524155792  WeChat : ainiyar0124
 * Created Time :2025/1/21 14:35
 Desc :
 **************************************/
const Layout = () => import('@/layout/index.vue');
import Home from '@assets/images/icon/home-outline-filled.svg';
import todo from '@assets/images/icon/clock-outline-filled.svg';
import Handled from '@assets/images/icon/task-done-outline-filled.svg';
import Setting from '@assets/images/icon/cog-outline-filled.svg';
// import Rest from '@assets/images/icon/calendar-outline-filled.svg';
import Person from '@assets/images/icon/person-outline-filled.svg';
import Enroll from '@assets/images/icon/handshake-outline-filled.svg';

export default [
    {
        path: "/login",
        name: "login",
        component: () => import('@/pages/login'),
        meta: {
            title: "登录",
            hideInMenu: true,
        },
    }, {
        path: "/",
        name: "/",
        redirect: '/index',
        component: Layout,
        children: [
            {
                path: "/index",
                name: "index",
                meta: {
                    title: "首页",
                    icon:Home,
                },
                component: () => import("@/pages/index"),
            },
            {
                path: "/:pathMatch(.*)*",
                name: "notFound",
                meta: {
                    hideInMenu: true,
                    title: "404",
                },
                component: () => import("@components/ErrorPage/404.vue"),
            },
            {
                path: "/enroll",
                name: "enroll",
                meta: {
                    title: "招生计划",
                    icon:Enroll,
                },
                component: () => import("@/pages/enroll"),
            }, {
                path: "/todo",
                name: "todo",
                meta: {
                    title: "待办订单",
                    icon:todo
                },
                component: () => import("@/pages/todo"),
            }, {
                path: "/handled",
                name: "handled",
                meta: {
                    title: "已办订单",
                    icon: Handled
                },
                component: () => import("@/pages/handled"),
            }, {
                path: "/setting",
                name: "setting",
                meta: {
                    title: "个人设置",
                    icon: Setting,
                },
                component: () => import("@/pages/setting"),
            },
            // {
            //     path: "/rest",
            //     name: "rest",
            //     meta: {
            //         title: "休息时间",
            //     },
            //     component: () => import("@/pages/rest"),
            // },
            {
                path: "/salesmans",
                name: "salesmans",
                meta: {
                    title: "业务员",
                    icon:Person
                },
                component: () => import("@/pages/salesman"),
            },
        ]
    }
]